import React, { Component } from 'react'
import Registe from './Registe'
import Login from './Login'
// withCommon其实是一个函数
import withCommon from './Common'

// 调用withCommon,返回值是Common组件
const Common1 = withCommon(Login)
const Common2 = withCommon(Registe)

export default class App extends Component {
  render() {
    return (
      <div>
        <Common1 xxx={123} yyy={789}></Common1>
        <Common2></Common2>
      </div>
    )
  }
}
